package com.medvalley.tcm.dao;

import com.medvalley.tcm.domain.SickInfoStorage;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author linsong
 * @date 2019/7/21 11:06
 **/

public interface SickInfoStorageDao extends CrudRepository<SickInfoStorage, Long> {
    List<SickInfoStorage> findAllByPhoneOrderByIdDesc(String phone);

    SickInfoStorage findOneByBarCodeAndPhone(String barcode, String phone);

    List<SickInfoStorage> findAllByBarCodeIn(List<String> barcodes);

}
